import config from "@/config"
import http from "@/utils/request"

export default {
	lists: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/lists`,
		name: "获取仓库列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/edit`,
		name: "修改仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	add: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/add`,
		name: "添加仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	delete: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/delete`,
		name: "删除仓库",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	update_status: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/update_status`,
		name: "修改仓库状态",
		post: async function(params){
			return await http.post(this.url, params);
		}
	},
	update_default: {
		url: `${config.API_URL}/adminapi/shop.shop_ware/update_default`,
		name: "修改仓库默认",
		post: async function(params){
			return await http.post(this.url, params);
		}
	}
}
